//
//  ViewController.m
//  3-1
//
//  Created by mac on 16-3-2.
//
//

#import "ViewController.h"

@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad
{
    [super viewDidLoad];
	// Do any additional setup after loading the view, typically from a nib.
}

-(IBAction)method
{/*
    //接受数值为字符串
    NSString * text1 = self.textFiled1.text;
    NSString * text2 = self.textFiled2.text;
    //转换为整数
    int num1 = [text1 intValue];
    int num2 = [text2 intValue];
    int result = 0;
    result = num1 - num2;
    
   //整型转换为字符串
    NSString * output = [NSString stringWithFormat:@"%d",result];
    self.res.text = output;
    
    NSLog(@"我点击了按钮");
   //NSLog(@"%@",text1);
    //NSLog(@"%@",text2);
    NSLog(@"%d",result);
    */
    
}


- (void)didReceiveMemoryWarning
{
    
    
    
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
